package com.aaa.javaweb.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class TOrder {
    private Date createtime;
    private double price;
    private String name;
    private Integer tel;
    private Integer status;
    private Integer roomtype;
    private Integer count;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date rzdate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date leavedate;

    public TOrder(Date createtime, double price, String name, Integer tel, Integer status, Integer roomtype, Integer count, Date rzdate, Date leavedate) {
        this.createtime = createtime;
        this.price = price;
        this.name = name;
        this.tel = tel;
        this.status = status;
        this.roomtype = roomtype;
        this.count = count;
        this.rzdate = rzdate;
        this.leavedate = leavedate;
    }

    public TOrder() {
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getTel() {
        return tel;
    }

    public void setTel(Integer tel) {
        this.tel = tel;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getRoomtype() {
        return roomtype;
    }

    public void setRoomtype(Integer roomtype) {
        this.roomtype = roomtype;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Date getRzdate() {
        return rzdate;
    }

    public void setRzdate(Date rzdate) {
        this.rzdate = rzdate;
    }

    public Date getLeavedate() {
        return leavedate;
    }

    public void setLeavedate(Date leavedate) {
        this.leavedate = leavedate;
    }
}
